package com.zs.blog.converter;

import com.zs.blog.model.dto.ApplyFriendLinkDTO;
import com.zs.blog.model.entity.FriendLink;
import com.zs.blog.model.vo.FriendLinkListVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Title: FriendLinkConverter
 * @Author zs
 * @Package com.zs.blog.converter
 * @Date 2025/6/4 22:38
 * @description: 友链属性转换器
 */
@Mapper(componentModel = "spring")
public interface FriendLinkConverter {
    FriendLinkConverter INSTANCE =  Mappers.getMapper(FriendLinkConverter.class);

    List<FriendLinkListVO> friendLinkList2FriendLinkListVO(List<FriendLink> friendLinkList);

    FriendLink applyFriendLinkDTO2FriendLink(ApplyFriendLinkDTO applyFriendLinkDTO);
}
